package zj.xinxin.business.business.articale.converter;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import zj.xinxin.api.moudle.article.dto.DiscussDto;
import zj.xinxin.api.moudle.article.entity.DiscussEntity;
import zj.xinxin.api.moudle.article.vo.DiscussVo;

/**
 * @author junzhou
 * @date 2022/4/16 16:06
 * @since 1.8
 */
@Mapper(componentModel = "spring")
public interface DiscussConverter {
    DiscussConverter INSTANCE = Mappers.getMapper(DiscussConverter.class);

    DiscussEntity toEntity(DiscussVo vo);

    DiscussDto toDto(DiscussEntity entity);
}
